/**
 * @Author: sxiaohao
 * @Description:
 * @File:  main
 * @Version: 1.0.0
 * @Date: 2020/10/30 下午6:44
 */

package main

func main() {
	a := ".jpg"
	println(a[1:])
}

//数组平分
func splitArray(arr []uint8, num int64) [][]uint8 {
	max := int64(len(arr))
	if max < num {
		return nil
	}
	var segmens = make([][]uint8, 0)
	quantity := max / num
	end := int64(0)
	for i := int64(1); i <= num; i++ {
		qu := i * quantity
		if i != num {
			segmens = append(segmens, arr[i-1+end:qu])
		} else {
			segmens = append(segmens, arr[i-1+end:])
		}
		end = qu - i
	}
	return segmens
}
